package com.coderman.basketball.infrast.aop;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Description:
 * date: 2021/5/31
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 * 幂等
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface IdemPotent {
    /**
     * 接口幂等的请求号
     */
    String key() default "requestKey";

    /**
     * 消息幂等的key
     */
    String msgKey() default "_msgId";

}
